package com.web.service;

import com.web.entity.Token;
import com.baomidou.mybatisplus.service.IService;
import com.web.util.LoginException;
import com.web.util.ServiceException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hgjxyz
 * @since 2020-11-18
 */
public interface ITokenService extends IService<Token> {

    String addToken(String id, Integer type)throws ServiceException;

    Token getByToken(String token)throws LoginException;
}
